package com.focustech.crov.persist.mybatis.generator.plugin;

import java.util.List;
import java.util.Map.Entry;

import org.mybatis.generator.api.PluginAdapter;

/**
 * 定义我们自定义plugin的上下文<br/>
 * 必须配置在所有的自定义的plugin的前面
 * 
 * @author qsy
 * 
 */
public class CaseCadeSelectPlugin extends PluginAdapter {

	@Override
	public boolean validate(List<String> warnings) {

		for (Entry<Object, Object> entry : properties.entrySet()) {
			context.getProperties().setProperty(entry.getKey().toString(),
					entry.getValue().toString());
		}
		return true;
	}

}
